package test;

import static org.junit.Assert.*;

import java.io.IOException;

import org.junit.Before;
import org.junit.Test;
import org.rea.logic.MyForwardIterator;
import org.rea.logic.MyIterator;
import org.rea.logic.MyList;
import org.rea.logic.MyWriterbak;

public class test {

	MyList<Character> list1 = new MyList<Character>();


	@Before
	public void inizializza(){
		list1.addElement('a');
		list1.addElement('b');
		list1.addElement('c');

	}

	@Test
	public void add() {
		list1.addElement('h');
	}

	@Test
	public void fIter(){
		MyIterator<Character> fIter = list1.getForwardIterator();
	}

	@Test
	public void testMyReaderB() throws IOException{
		System.out.println("testMyReaderB: ");
		MyWriterbak reader = new MyWriterbak("/Users/Nathan/Documents/workspace/IngegneriaSoftware2/Progettazione_2DP_trunk/read1.txt");
		reader.printBackward();
		System.out.println();

	}
	@Test
	public void testMyReaderF() throws IOException{
		System.out.println("testMyReaderF: ");
		MyWriterbak reader = new MyWriterbak("/Users/Nathan/Documents/workspace/IngegneriaSoftware2/Progettazione_2DP_trunk/read1.txt");
		reader.printForward();
		System.out.println();

	}

}
